1 using System;
2 using
System.Drawing;
3 using
System.Collections;
4 using
System.ComponentModel;
5 using
System.Windows.Forms;
6
7
8 namespace
QuanLyNhanSu
9 {
10     
public class frmThongBaoLichLamViec : TransDialog1
11     {
12         
#region Ctor, init code and dispose
13         
public frmThongBaoLichLamViec()
14             :
base(true)
15         {
16             InitializeComponent();
17         }
18
19         
protected override void Dispose( bool disposing )
20         {
21             
if( disposing )
22             {
23                 
if(components != null)
24                 {
25                     components.Dispose();
26                 }
27             }
28             
base.Dispose( disposing );
29         }
30         
#endregion // Ctor and init code
31
32         
#region Event handler
33         
private void Notification_Load(object sender, System.EventArgs e)
34         {
35             
int screenWidth = Screen.PrimaryScreen.WorkingArea.Width;
36             
int screenHeight = Screen.PrimaryScreen.WorkingArea.Height;
37             
this.Left = screenWidth - this.Width;
38             
this.Top = screenHeight - this.Height;
39
40             timer1.Enabled =
true;
41
42             
string link = "http://www.geocities.com/basuabhinaba";
43             linkLabel1.Links.Add(
0, link.Length, link);
44         }
45
46         
private void timer1_Tick(object sender, System.EventArgs e)
47         {
48             
this.Close();
49         }
50
51         
private void linkLabel1_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
52         {
53             
string link = e.Link.LinkData.ToString();
54             
if (link != null && link.Length > 0)
55                 System.Diagnostics.Process.Start(link);
56         }
57         
#endregion // Event handler
58         
59         
#region Windows Form Designer generated code
60         ///
<summary>
61         ///
Required method for Designer support - do not modify
62         ///
the contents of this method with the code editor.
63         ///
</summary>
64         
private void InitializeComponent()
65         {
66             
this.components = new System.ComponentModel.Container();
67             System.ComponentModel.ComponentResourceManager resources =
new System.ComponentModel.ComponentResourceManager(typeof(frmThongBaoLichLamViec));
68             
this.label1 = new System.Windows.Forms.Label();
69             
this.pictureBox1 = new System.Windows.Forms.PictureBox();
70             
this.timer1 = new System.Windows.Forms.Timer(this.components);
71             
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
72             ((System.ComponentModel.ISupportInitialize)(
this.pictureBox1)).BeginInit();
73             
this.SuspendLayout();
74             
//
75             
// label1
76             
//
77             
this.label1.AutoSize = true;
78             
this.label1.Location = new System.Drawing.Point(111, 44);
79             
this.label1.Name = "label1";
80             
this.label1.Size = new System.Drawing.Size(161, 13);
81             
this.label1.TabIndex = 0;
82             
this.label1.Text = "Bạn có việc phải làm hôm nay !!!";
83             
//
84             
// pictureBox1
85             
//
86             
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
87             
this.pictureBox1.Location = new System.Drawing.Point(8, 8);
88             
this.pictureBox1.Name = "pictureBox1";
89             
this.pictureBox1.Size = new System.Drawing.Size(88, 72);
90             
this.pictureBox1.TabIndex = 1;
91             
this.pictureBox1.TabStop = false;
92             
//
93             
// timer1
94             
//
95             
this.timer1.Interval = 4000;
96             
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
97             
//
98             
// linkLabel1
99             
//
100             
this.linkLabel1.AutoSize = true;
101             
this.linkLabel1.Location = new System.Drawing.Point(112, 24);
102             
this.linkLabel1.Name = "linkLabel1";
103             
this.linkLabel1.Size = new System.Drawing.Size(146, 13);
104             
this.linkLabel1.TabIndex = 2;
105             
this.linkLabel1.TabStop = true;
106             
this.linkLabel1.Text = "Vui lòng kiểm tra lịch làm việc";
107             
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
108             
//
109             
// frmThongBaoLichLamViec
110             
//
111             
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
112             
this.BackColor = System.Drawing.Color.White;
113             
this.ClientSize = new System.Drawing.Size(282, 87);
114             
this.Controls.Add(this.linkLabel1);
115             
this.Controls.Add(this.pictureBox1);
116             
this.Controls.Add(this.label1);
117             
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
118             
this.Name = "frmThongBaoLichLamViec";
119             
this.Text = "Thông báo";
120             
this.TopMost = true;
121             
this.Load += new System.EventHandler(this.Notification_Load);
122             ((System.ComponentModel.ISupportInitialize)(
this.pictureBox1)).EndInit();
123             
this.ResumeLayout(false);
124             
this.PerformLayout();
125
126         }
127         
#endregion
128
129         
#region Designer generated variables
130         
private System.Windows.Forms.Label label1;
131         
private System.Windows.Forms.PictureBox pictureBox1;
132         
private System.Windows.Forms.Timer timer1;
133         
private System.Windows.Forms.LinkLabel linkLabel1;
134         
private System.ComponentModel.IContainer components;
135         
#endregion
136
137     }
138 }



Quản lý nhân sự công ty bằng c# _ full source code 60.379 lượt xem

Gõ tìm kiếm nhanh...